package com.itbaiyun.ai.assistance;


import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

/**
 * 我的智能体
 */
@AiService(
        wiringMode = AiServiceWiringMode.EXPLICIT,
        streamingChatModel = "qwenStreamingChatModel",
        chatMemoryProvider = "chatMemoryProvider",
        tools = "appointmentTools",
        contentRetriever = "contentRetrieverAIPincone"
)

public interface MyAssistant {
    @SystemMessage(fromResource = "documents/system.txt")
    Flux<String> chat(@MemoryId Long memoryId, @UserMessage String userMessage);
}
